package main

import (
	"fmt"
	bc "./blockchain"
)

func main() {
	chain := bc.NewChain()
	chain = append(chain, bc.NewBlock("data 1", chain[len(chain)-1].CurrHash))
	printChain(chain)
}

func printChain(chain bc.BlockChain) {
	for _, block := range chain {
		fmt.Println(bc.SerializeBlock(block))
	}
}
